
from selenium.webdriver.common.by import By

#对象库
from data_driver.base.basePage import BasePage, BaseHandle


class PageHome(BasePage):
    def __init__(self):
        super().__init__()
        self.find_login_text=By.CSS_SELECTOR, ".red"

    def find_login_btn(self):
        return self.get_element(self.find_login_text)

#操作库
class HandleHome(BaseHandle):
    def __init__(self):
        self.page_home=PageHome()
    def click_login_btn(self):
        self.page_home.find_login_btn().click()

# 业务层
class ProxyHome:
    def __init__(self):
        self.handleHome=HandleHome()

    def go_login(self):
        self.handleHome.click_login_btn()








